package com.wuhunyu.client;

import com.wuhunyu.client.err.ServiceUserClientErr;
import com.wuhunyu.commonutils.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户服务接口
 *
 * @author wuhunyu
 * @version 1.0
 * @date 2021-01-26 15:00
 */
@Component
@FeignClient(name = "service-ucenter",fallback = ServiceUserClientErr.class)
public interface ServiceUserClient {

    /**
     * 获取用户信息
     * @param id
     * @return
     */
    @PostMapping("/userCenterMember/selectMemberInfoById")
    public CommonResult selectMemberInfo(@RequestBody String id);

}
